import { withRouter } from "react-router-dom";

function Contact({ history, location, match }) {
  console.log("Contact location", location);
  return (
    <div>
      <h2>Contact</h2>
    </div>
  );
}

/**
 * 使用 withRouter 对 Contact 做一个高阶，这样被包装组件Contact就能接受到路由相关的Props
 */
export default withRouter(Contact);
